package com.ruoyi.view.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.view.mapper.TrendCountMapper;
import com.ruoyi.view.domain.TrendCount;
import com.ruoyi.view.service.ITrendCountService;
import com.ruoyi.common.core.text.Convert;

/**
 * trend_countService业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
@Service
public class TrendCountServiceImpl implements ITrendCountService 
{
    @Autowired
    private TrendCountMapper trendCountMapper;

    /**
     * 查询trend_count
     * 
     * @param trend trend_count主键
     * @return trend_count
     */
    @Override
    public TrendCount selectTrendCountByTrend(String trend)
    {
        return trendCountMapper.selectTrendCountByTrend(trend);
    }

    /**
     * 查询trend_count列表
     * 
     * @param trendCount trend_count
     * @return trend_count
     */
    @Override
    public List<TrendCount> selectTrendCountList(TrendCount trendCount)
    {
        return trendCountMapper.selectTrendCountList(trendCount);
    }

    /**
     * 新增trend_count
     * 
     * @param trendCount trend_count
     * @return 结果
     */
    @Override
    public int insertTrendCount(TrendCount trendCount)
    {
        return trendCountMapper.insertTrendCount(trendCount);
    }

    /**
     * 修改trend_count
     * 
     * @param trendCount trend_count
     * @return 结果
     */
    @Override
    public int updateTrendCount(TrendCount trendCount)
    {
        return trendCountMapper.updateTrendCount(trendCount);
    }

    /**
     * 批量删除trend_count
     * 
     * @param trends 需要删除的trend_count主键
     * @return 结果
     */
    @Override
    public int deleteTrendCountByTrends(String trends)
    {
        return trendCountMapper.deleteTrendCountByTrends(Convert.toStrArray(trends));
    }

    /**
     * 删除trend_count信息
     * 
     * @param trend trend_count主键
     * @return 结果
     */
    @Override
    public int deleteTrendCountByTrend(String trend)
    {
        return trendCountMapper.deleteTrendCountByTrend(trend);
    }
}
